package com.omesoft.hksnore.util.json;


import android.content.Context;

import com.omesoft.hksnore.R;


/**
 * 返回错误编码解析，以及JSON的常量统一使用
 *
 * @author omesoft_fb
 *
 *         2014-4-26上午11:35:37
 */
public class ReErrorCode {
    // JSON返回标识ID
    public static final int ERRCODE_SUCEED = 0;
    public static final int ERRCODE_FAIL = 321;
    //
    public static final int ERRCODE_UNKNOWN_EXCEPTION = 1;
    public static final int ERRCODE_NUMBER_EXIST = 2;
    public static final int ERRCODE_PASSWORD_INCORRECT = 4; // 与22提示一样
    public static final int ERRCODE_PASSWORD_ERROR = 5;
    /** ret=4, 验证clientKey失败,ret=3验证clientKey失败>验证SoapHeader或者登录信息失败，没有权限访问接口 */
    public static final int ERRCODE_NO_PROCESSION = 6;
    public static final int ERRCODE_JSON_PARSER_ERROR = 9;
    public static final int ERRCODE_DATA_NO_EXIST = 11;
    public static final int ERRCODE_SYNCHRONOUS_LOCK = 17;
    public static final int ERRCODE_UPDATE_EXCEPTION = 18;
    public static final int ERRCODE_NO_USER_FAMILY = 19;
    public static final int ERRCODE_DATABASE_EXCEPTION = 20;
    public static final int ERRCODE_OLDPASSWORD_NOSAME = 22;
    public static final int ERRCODE_PASSWORD_SAME = 23;
    public static final int ERRCODE_TEL_NUMBER_REGISTRATION = 25;
    public static final int ERRCODE_SEND_CAPTCHA_FAILED = 26;
    public static final int ERRCODE_BE_CAPTCHA_FAILED = 27;
    public static final int ERRCODE_ADD_MEMBER_FAILED = 28;
    public static final int ERRCODE_NO_USER_MEMBER = 29;
    public static final int ERRCODE_JSON_MEMBERID_FAILED = 30;
    public static final int ERRCODE_NO_TEL_NUMBER_REGISTRATION = 31;
    // public static final int ERRCODE_NO_USER_PAPERWORD = 32;
    // public static final int ERRCODE_CREDENTIALS_EXIST = 33;
    public static final int ERRCODE_CANCEL_ORDER_FAIL = 34;// 取消订单失败
    public static final int ERRCODE_REGISTERED_POOL_CONNECTION_FAILED = 35;
    public static final int ERRCODE_OVER_TIME = 36;// 连接超时
    public static final int ERRCODE_RESERVATION_TIME_FAIL = 37;
    public static final int ERRCODE_RESERVATION_FAIL = 38;
    public static final int ERRCODE_NO_RESERVATION_MESSAGE = 39;
    public static final int ERRCODE_REQUEST_NO_EXIST = 40;
    public static final int ERRCODE_REGISTRATION_SIGN_FAILED = 41;
    public static final int ERRCODE_REGISTRATION_BE_FULL = 42;
    public static final int ERRCODE_REGISTRATION_NUMBER_IS_NULL = 43;
    public static final int ERRCODE_RESERVATION_TIMES_FAILED = 44;
    public static final int ERRCODE_MESSAGE_NO_EXIST = 45;
    public static final int ERRCODE_STATUS_IS_CANCEL = 46;
    public static final int ERRCODE_RESERVATION_CAN_NOT_BE_REPEATED = 47;
    public static final int ERRCODE_NOT_ALLOWED_TO_CANCEL_AN_APPOINTMENT = 48;
    public static final int ERRCODE_REGISTRATION_UNKNOWN_EXCEPTION = 49;
    public static final int ERRCODE_NO_ORDER = 50;// 没有订单
    public static final int ERRCODE_HAVED_PRESENTATION = 51;
    public static final int ERRCODE_CALL_ZHUHAI_SECOND_PEOPLE_HOSPITAL_OF_SERVICE_RONG = 52;
    public static final int ERRCODE_OVER_HOSPITALID = 53;
    public static final int ERRCODE_NO_CONNECT_HOSPITAL = 54;
    public static final int ERRCODE_REGISTRATION_UNKNOWN_EXCEPTION1 = 55;// 与49提示一样
    public static final int ERRCODE_INVALID_CARD = 56;
    public static final int ERRCODE_STATUS_IS_FALSE = 57;
    public static final int ERRCODE_BUT_THE_NAMES_ARE_NOT_THE_SAME = 58;
    public static final int ERRCODE_ENTER_THE_NAME_DOES_NOT_MATCH_THE_CARDHOLDER_NAME = 59;
    public static final int ERRCODE_DOES_NOT_EXIST_FOUNDER = 60;
    public static final int ERRCODE_ASKED_BY_GENDER_DOES_NOT_MEET_THE_CRITERIA = 61;
    public static final int ERRCODE_ASKED_BY_AGE_DOES_NOT_MEET_THE_STANDARDS = 62;
    public static final int ERRCODE_AGE_DOES_NOT_MEET_THE_STANDARD = 63;
    public static final int ERRCODE_PATIENT_AGE_TYPE_DOES_NOT_MEET_THE_STANDARDS = 64;
    public static final int ERRCODE_PROBLEMS_CAN_NOT_BE_MORE_THAN_800_CHARACTERS = 65;
    public static final int ERRCODE_PROBLEM_CAN_NOT_BE_EMPTY = 66;
    public static final int ERRCODE_DESCRIPTION_OF_THE_PROBLEM_CAN_NOT_BE_MORE_THAN_3000_CHARACTERS = 67;
    public static final int ERRCODE_ATTACHMENT_EXCEEDS_THE_MAXIMUM_LIMIT = 68;
    public static final int ERRCODE_ACCESSORIES_INCORRECT_FORMAT = 69;
    public static final int ERRCODE_FAILED_TO_READ_THE_ATTACHMENT_FILE = 70;
    public static final int ERRCODE_ATTACHMENT_SIZE_EXCEEDS_LIMIT = 71;
    public static final int ERRCODE_READ_ATTACHMENT_PROBLEMS = 72;
    public static final int ERRCODE_THE_USER_HAS_NOT_OPENED_PACKAGE_SERVICES = 73;
    public static final int ERRCODE_TODAY_THE_NUMBER_HAS_EXCEEDED_THE_UPPER_LIMIT_OF_FIVE_QUESTIONS = 74;
    public static final int ERRCODE_SERVICE_PROVIDER_DOES_NOT_RECOGNIZE_THE_ERROR_RESPONSE = 75;
    public static final int ERRCODE_WHEN_SUBMITTING_PACKAGES_TO_THE_SERVICE_PROVIDER = 76;
    public static final int ERRCODE_WHEN_SUBMITTING_PACKAGES_TO_THE_SERVICE_PROVIDER_PARAMETER_ERROR = 77;
    public static final int ERRCODE_DOCUMENT_TYPE_CAN_NOT_BE_EMPTY = 78;
    public static final int ERRCODE_DOCUMENTS_CAN_NOT_BE_EMPTY = 79;
    public static final int ERRCODE_THE_USER_NAME_CAN_NOT_BE_EMPTY = 80;
    public static final int ERRCODE_PHONE_NUMBER_CAN_NOT_BE_EMPTY = 81;
    public static final int ERRCODE_START_TIME_CAN_NOT_BE_EMPTY = 82;
    public static final int ERRCODE_EXPIRATION_TIME_CAN_NOT_BE_EMPTY = 83;
    public static final int ERRCODE_THE_STATE_CAN_NOT_BE_EMPTY = 84;
    public static final int ERRCODE_PUSH_CAN_NOT_BE_EMPTY = 85;

    public static final int ERRCODE_VIP_UNKNOWN_EXCEPTION = 89;
    public static final int ERRCODE_SERVICE_OF_PEOPPLE_HOSPITAL = 90;
    public static final int ERRCODE_HOSPITAL_CARD_NULL = 91;
    public static final int ERRCODE_SCHEDULING_OVER = 92;

    public static final int ERRCODE_MISSION_COMPLETED = 111;

    public static final int ERRCODE_QQ_TOKENTIMEOUT = 141;
    public static final int ERRCODE_QQ_OPENID_MISMATCH = 142;
    public static final int ERRCODE_QQ_APPID_MISMATCH = 143;
    public static final int ERRCODE_QQ_PLATFORM_ID_ERROR = 144;
    public static final int ERRCODE_QQ_PLATFORM_UNKNOWN_ERROR = 145;
    public static final int ERRCODE_REGISTER_TYPE_ERROR = 146;
    public static final int ERRCODE_GET_PHOTO_ALBUM_SUCEED = 160;
    public static final int ERRCODE_DELETE_PHOTO_SUCEED = 161;
    public static final int ERRCODE_RESET_MENBER_AVATAR = 162;
    public static final int ERRCODE_MISSION_ERROR = 178;

    public static final int ERRCODE_GOLD_NOTENOUGH = 180;// 金币不足，用于金币激活骨传导

    public static final int ERRCODE_PARAMS_ERROR = 1008;
    public static final int ERRCODE_ID_ERROR = 10001;
    public static final int ERRCODE_COUNT_ERROR = 10002;
    public static final int ERRCODE_PAGE_ERROR = 10003;
    public static final int ERRCODE_10004 = 10004;
    public static final int ERRCODE_EMAIL_ERROR = 10006;
    public static final int ERRCODE_IP_ERROR = 10007;
    public static final int ERRCODE_NO_PARAMETER = 10008;
    public static final int ERRCODE_NO_TELNUMBER = 10017;
    public static final int ERRCODE_TELNUMBER_CAPTCHA = 10018;
    public static final int ERRCODE_IP_CAPTCHA = 10019;
    public static final int ERRCODE_NO_CAPTCHA = 10020;
    public static final int ERRCODE_CAPTCHA_OVERTIME = 10021;
    public static final int ERRCODE_NO_PASSWORD_TYPE = 10022;
    public static final int ERRCODE_NO_CAPTCHA_TYPE = 10023;
    public static final int ERRCODE_NO_PAPERWORD_MESSAGE = 10025;
    public static final int ERRCODE_NO_HOSPITAL_ID = 10026;
    public static final int ERRCODE_NO_ORDER_REGIST = 10027;
    public static final int ERRCODE_NO_SCHEDULING_ID = 10028;
    public static final int ERRCODE_NO_PAPERWORD = 10029;
    public static final int ERRCODE_NO_REALNAME = 10030;
    public static final int ERRCODE_NO_USER_TELNUMBER = 10031;
    public static final int ERRCODE_INVALID_IDCARD = 10033;
    public static final int ERRCODE_INVALID_SOCIAL_CARD = 10034;
    public static final int ERRCODE_INVALID_CITIZEN_CARD = 10035;

    public static final int ERRCODE_ACTIVATION_ALREADY = 10037;//已激活骨传导

    public static final int ERRCODE_NETWORK_ANOMALY = 10041;

    public static final int ERRCODE_APPID_ERROR = 10040;
    // 自定义标识ID
    public static final int ERRCODE_NO_RETRUN_ERROR = 2000;
    public static final int ERRCODE_NO_NET = 3000;
    public static final int ERRCODE_NO_NET_WIFI = 3001;
    public static final int SUCEED = 4000;
    public static final int FAIL = 4001;
    public static final int HAD_BEEN_DELETED = 243;
    public static final int COMMENT_HAD_BEEN_DELETED = 190;
    public static final int ADD_SUCEED = 4002;
    public static final int ADD_FAIL = 4003;
    public static final int DELETE_SUCEED = 4004;
    public static final int CANCEL_ORDER_SUCEED = 4005;// 取消预约成功
    public static final int CANCEL_ORDER_FAIL = 4006;// 取消预约失败
    public static final int BILL_SUCEED = 4007;
    public static final int BILL_FAIL = 4008;
    public static final int ORDER_SUCEED = 4009;
    public static final int ORDER_FAIL = 4010;
    public static final int PAY_SUCEED = 4011;
    public static final int PAY_FAIL = 4012;
    public static final int RQF_PAY = 4013;
    public static final int RQF_LOGIN = 4014;
    public static final int SUCEED_GetMemberInfo = 4015;
    public static final int SUCEED_GetShopWrapInfo = 4016;
    public static final int SUCEED_GetTaskWrapInfo = 4017;
    public static final int SUCEED_GetOrderChangeCount = 4018;
    public static final int SUCEED_TaskLikeThread = 4018;
    public static final int SUCEED_TaskReviewThread = 4019;
    public static final int SUCEED_GETWXPAYINFO = 4020;
    public static final int COMMAND_PAY_BY_WX = 4021;// WXPayEntryActivity返回

    public static final int ERRCODE_SERVER_ERROR = 5000;// 服务器错误
    public static final int ERRCODE_INFORMATION_NULL = 5001;// 提问医生，信息为空
    public static final int ERRCODE_JSON_ASK_PHOTO_PARSER_ERROR = 5002;
    public static final int ERRCODE_JSON_ASK_DOCTOR_PARSER_ERROR = 5003;
    public static final int ERRCODE_JSON_ASK_DOCTOR_PHOTO = 5555;// 下载医生图片成功
    public static final int ERRCODE_JSON_ASK_USER_PHOTO = 5556;// 下载家庭成员头像图片成功
    public static final int ERRCODE_JSON_ASK_DOCTOR_PATIENT_1 = 6661;// 下载病人描述图片成功
    public static final int ERRCODE_JSON_ASK_DOCTOR_PATIENT_2 = 6662;
    public static final int ERRCODE_JSON_ASK_DOCTOR_PATIENT_3 = 6663;
    public static final int SUCCESS_TO_GET_VIP = 5004;// 成功获取套餐
    public static final int FAIL_TO_GET_VIP = 5005;// 失败获取套餐

    public static final int ERROR_GET_VERIFY_CODE_SUCCEED = 6000;// 发送验证
    public static final int ERROR_VERIFY_BACKWARD = 6666;// 发送验证
    public static final int ERROR_REGISTER_FAIL = 6888;// 发送验证
    public static final int SYNC_SUCCEDFUL = 666;
    public static final int ERROR_GET_FAMILY_IS_EMPTY = 6001;// 用户为空
    public static final int ERROR_REGISTER_SUCCEED_TO_LOGIN = 6002;// 注册成功，然后登录

    public static final int SUCEED_AddMyBBSForum = 6003;// 会员关注BBSForum成功
    public static final int SUCEED_DeleteMyBBSForum = 6004;// 删除BBSForum成功
    public static final int SUCEED_GetBBSHomeInfo = 6005;// 获取BBSForum成功
    public static final int SUCCESS_GetBBSUnreadMessage = 6006;// 获取混江湖论坛未读消息数成功
    public static final int SUCCESS_GetBBSThreadsByForumId = 6007;
    public static final int SUCCESS_GetBBSReviewsByThreadId = 6008;// 获取帖子评论列表成功
    public static final int SUCCESS_AddReview = 6009; // 评论成功；
    public static final int SUCCESS_AddSubReview = 6010;// 回复评论成功；
    public static final int SUCCESS_AddLikeThread = 6011;// 点赞成功；
    public static final int SUCCESS_DeleteLikeThread = 6012;// 取消赞成功；
    public static final int SUCCESS_GetBBSStickThreadsByForumId = 6013;// 获取论坛顶置帖子成功；
    public static final int SUCCESS_BuyMixAudio = 6014;
    public static final int SUCCESS_GetBBSThreadForShare = 6015;
    public static final int SUCCESS_GetThreadInfoById = 6016; // 获取帖子信息成功

    public static final int SUCCESS_DELETEPOST = 6017;// 删除帖子成功

    // public static String reString(Context context, int errorCode) {
    // switch (errorCode) {
    // case 32:
    // return context.getString(R.string.json_error_32);
    // case 33:
    // return context.getString(R.string.json_error_33);
    // case ERRCODE_CANCEL_ORDER_FAIL:
    // return context
    // .getString(R.string.json_error_fail_cancel_appointment);
    // case ERRCODE_REGISTERED_POOL_CONNECTION_FAILED:
    // return
    // context.getString(R.string.json_error_registered_pool_connection_failed);
    // case ERRCODE_OVER_TIME:
    // return context.getString(R.string.json_error_over_time);
    // case ERRCODE_RESERVATION_TIME_FAIL:
    // return context
    // .getString(R.string.json_error_reservation_time_failed);
    // case ERRCODE_RESERVATION_FAIL:
    // return context.getString(R.string.json_error_reservation_failed);
    // case ERRCODE_NO_RESERVATION_MESSAGE:
    // return context
    // .getString(R.string.json_error_no_reservation_message);
    // case ERRCODE_REQUEST_NO_EXIST:
    // return context.getString(R.string.json_error_request_no_exist);
    // case ERRCODE_REGISTRATION_SIGN_FAILED:
    // return context
    // .getString(R.string.json_error_registration_sign_failed);
    // case ERRCODE_REGISTRATION_BE_FULL:
    // return context.getString(R.string.json_error_registration_be_full);
    // case ERRCODE_REGISTRATION_NUMBER_IS_NULL:
    // return context
    // .getString(R.string.json_error_registration_number_is_null);
    // case ERRCODE_RESERVATION_TIMES_FAILED:
    // return context
    // .getString(R.string.json_error_registration_time_failed);
    // case ERRCODE_MESSAGE_NO_EXIST:
    // return context.getString(R.string.json_error_message_no_exist);
    // case ERRCODE_STATUS_IS_CANCEL:
    // return context.getString(R.string.json_error_status_is_cancel);
    // case ERRCODE_RESERVATION_CAN_NOT_BE_REPEATED:
    // return
    // context.getString(R.string.json_error_reservation_can_not_be_repeated);
    // case ERRCODE_NOT_ALLOWED_TO_CANCEL_AN_APPOINTMENT:
    // return
    // context.getString(R.string.json_error_not_allowed_to_cancel_an_appointment);
    // case ERRCODE_REGISTRATION_UNKNOWN_EXCEPTION:
    // return context
    // .getString(R.string.json_error_registration_unknow_exception);
    // case ERRCODE_NO_ORDER:
    // return context.getString(R.string.json_error_no_order);
    // case ERRCODE_HAVED_PRESENTATION:
    // return context.getString(R.string.json_error_haved_presentation);
    // case ERRCODE_CALL_ZHUHAI_SECOND_PEOPLE_HOSPITAL_OF_SERVICE_RONG:
    // return
    // context.getString(R.string.json_error_call_zhuhai_second_people_hospital_of_service_rong);
    // case ERRCODE_OVER_HOSPITALID:
    // return context.getString(R.string.json_error_over_hospitalid);
    // case ERRCODE_NO_CONNECT_HOSPITAL:
    // return context.getString(R.string.json_error_no_connect_hospital);
    // case ERRCODE_REGISTRATION_UNKNOWN_EXCEPTION1:
    // return context
    // .getString(R.string.json_error_registration_unknow_exception);
    // case ERRCODE_INVALID_CARD:
    // return context.getString(R.string.json_error_invalid_card);
    // case ERRCODE_STATUS_IS_FALSE:
    // return context.getString(R.string.json_error_status_is_false);
    // case ERRCODE_BUT_THE_NAMES_ARE_NOT_THE_SAME:
    // return
    // context.getString(R.string.json_error_but_the_names_are_not_the_same);
    // case ERRCODE_ENTER_THE_NAME_DOES_NOT_MATCH_THE_CARDHOLDER_NAME:
    // return
    // context.getString(R.string.json_error_enter_the_name_does_not_match_the_cardholder_name);
    // case ERRCODE_DOES_NOT_EXIST_FOUNDER:
    // return context.getString(R.string.json_error_does_not_exist_founder);
    // case ERRCODE_ASKED_BY_GENDER_DOES_NOT_MEET_THE_CRITERIA:
    // return
    // context.getString(R.string.json_error_asked_by_gender_does_not_meet_the_criteria);
    // case ERRCODE_ASKED_BY_AGE_DOES_NOT_MEET_THE_STANDARDS:
    // return
    // context.getString(R.string.json_error_asked_by_age_does_not_meet_the_standards);
    // case ERRCODE_AGE_DOES_NOT_MEET_THE_STANDARD:
    // return
    // context.getString(R.string.json_error_age_does_not_meet_the_standard);
    // case ERRCODE_PATIENT_AGE_TYPE_DOES_NOT_MEET_THE_STANDARDS:
    // return
    // context.getString(R.string.json_error_patient_age_type_does_not_meet_the_standards);
    // case ERRCODE_PROBLEMS_CAN_NOT_BE_MORE_THAN_800_CHARACTERS:
    // return
    // context.getString(R.string.json_error_problems_can_not_be_more_than_800_characters);
    // case ERRCODE_PROBLEM_CAN_NOT_BE_EMPTY:
    // return context.getString(R.string.json_error_problem_can_not_be_empty);
    // case
    // ERRCODE_DESCRIPTION_OF_THE_PROBLEM_CAN_NOT_BE_MORE_THAN_3000_CHARACTERS:
    // return
    // context.getString(R.string.json_error_description_of_the_problem_can_not_be_more_than_3000_characters);
    // case ERRCODE_ATTACHMENT_EXCEEDS_THE_MAXIMUM_LIMIT:
    // return
    // context.getString(R.string.json_error_attachment_exceeds_the_maximum_limit);
    // case ERRCODE_ACCESSORIES_INCORRECT_FORMAT:
    // return
    // context.getString(R.string.json_error_accessories_incorrect_format);
    // case ERRCODE_FAILED_TO_READ_THE_ATTACHMENT_FILE:
    // return
    // context.getString(R.string.json_error_failed_to_read_the_attachment_file);
    // case ERRCODE_ATTACHMENT_SIZE_EXCEEDS_LIMIT:
    // return
    // context.getString(R.string.json_error_attachment_size_exceeds_limit);
    // case ERRCODE_READ_ATTACHMENT_PROBLEMS:
    // return context.getString(R.string.json_error_read_attachment_problems);
    // case ERRCODE_THE_USER_HAS_NOT_OPENED_PACKAGE_SERVICES:
    // return
    // context.getString(R.string.json_error_the_user_has_not_opened_package_services);
    // case
    // ERRCODE_TODAY_THE_NUMBER_HAS_EXCEEDED_THE_UPPER_LIMIT_OF_FIVE_QUESTIONS:
    // return
    // context.getString(R.string.json_error_today_the_number_has_exceeded_the_upper_limit_of_five_questions);
    // case ERRCODE_SERVICE_PROVIDER_DOES_NOT_RECOGNIZE_THE_ERROR_RESPONSE:
    // return
    // context.getString(R.string.json_error_service_provider_does_not_recognize_the_error_response);
    // case ERRCODE_WHEN_SUBMITTING_PACKAGES_TO_THE_SERVICE_PROVIDER:
    // return
    // context.getString(R.string.json_error_when_submitting_packages_to_the_service_provider);
    // case
    // ERRCODE_WHEN_SUBMITTING_PACKAGES_TO_THE_SERVICE_PROVIDER_PARAMETER_ERROR:
    // return
    // context.getString(R.string.json_error_when_submitting_packages_to_the_service_provider_parameter_error);
    // case ERRCODE_DOCUMENT_TYPE_CAN_NOT_BE_EMPTY:
    // return
    // context.getString(R.string.json_error_document_type_can_not_be_empty);
    // case ERRCODE_DOCUMENTS_CAN_NOT_BE_EMPTY:
    // return context.getString(R.string.json_error_documents_can_not_be_empty);
    // case ERRCODE_THE_USER_NAME_CAN_NOT_BE_EMPTY:
    // return
    // context.getString(R.string.json_error_the_user_name_can_not_be_empty);
    // case ERRCODE_PHONE_NUMBER_CAN_NOT_BE_EMPTY:
    // return
    // context.getString(R.string.json_error_phone_number_can_not_be_empty);
    // case ERRCODE_START_TIME_CAN_NOT_BE_EMPTY:
    // return
    // context.getString(R.string.json_error_start_Time_can_not_be_empty);
    // case ERRCODE_EXPIRATION_TIME_CAN_NOT_BE_EMPTY:
    // return
    // context.getString(R.string.json_error_expiration_time_can_not_be_empty);
    // case ERRCODE_THE_STATE_CAN_NOT_BE_EMPTY:
    // return context.getString(R.string.json_error_the_state_can_not_be_empty);
    // case ERRCODE_PUSH_CAN_NOT_BE_EMPTY:
    // return context.getString(R.string.json_error_push_can_not_be_empty);
    // case ERRCODE_NUMBER_EXIST:
    // return context.getString(R.string.json_error_json_error_number_exist);
    // case ERRCODE_PASSWORD_INCORRECT:
    // return context.getString(R.string.json_error_pwd_Incorrect);
    // case ERRCODE_PASSWORD_ERROR:
    // return context.getString(R.string.json_error_id_password_error);
    // case ERRCODE_NO_PROCESSION:
    // return context.getString(R.string.json_error_no_procession);
    // case ERRCODE_JSON_PARSER_ERROR:
    // return context.getString(R.string.json_error_parser_error);
    // case ERRCODE_DATA_NO_EXIST:
    // return context.getString(R.string.json_error_data_no_exist);
    // case ERRCODE_SYNCHRONOUS_LOCK:
    // return context.getString(R.string.json_error_data_no_exist);
    // case ERRCODE_UPDATE_EXCEPTION:
    // return context.getString(R.string.json_error_update_exception);
    // case ERRCODE_NO_USER_FAMILY:
    // return context.getString(R.string.json_error_update_exception);
    // case ERRCODE_DATABASE_EXCEPTION:
    // return context.getString(R.string.json_error_update_exception);
    // case ERRCODE_OLDPASSWORD_NOSAME:
    // return context.getString(R.string.json_error_pwd_Incorrect);
    // case ERRCODE_PASSWORD_SAME:
    // return context.getString(R.string.json_error_pwd_same);
    // case ERRCODE_TEL_NUMBER_REGISTRATION:
    // return context
    // .getString(R.string.json_error_tel_number_registration);
    // case ERRCODE_SEND_CAPTCHA_FAILED:
    // return context.getString(R.string.json_error_send_captcha_failed);
    // case ERRCODE_BE_CAPTCHA_FAILED:
    // return context.getString(R.string.json_error_be_captcha_failed);
    // case ERRCODE_ADD_MEMBER_FAILED:
    // return context.getString(R.string.json_error_add_member_failed);
    // case ERRCODE_NO_USER_MEMBER:
    // return context.getString(R.string.json_error_no_user_member);
    // case ERRCODE_JSON_MEMBERID_FAILED:
    // return context.getString(R.string.json_error_memberid_failed);
    // case ERRCODE_NO_TEL_NUMBER_REGISTRATION:
    // return context
    // .getString(R.string.json_error_no_tel_number_registration);
    // case ERRCODE_VIP_UNKNOWN_EXCEPTION:
    // return context.getString(R.string.json_error_vip_unknown_exception);
    // case ERRCODE_SERVICE_OF_PEOPPLE_HOSPITAL:
    // return context
    // .getString(R.string.json_error_service_of_people_hospital);
    // case ERRCODE_HOSPITAL_CARD_NULL:
    // return context.getString(R.string.json_error_hospital_card_null);
    // case ERRCODE_SCHEDULING_OVER:
    // return context.getString(R.string.json_error_scheduling_over);
    // case ERRCODE_ID_ERROR:
    // return context.getString(R.string.json_error_login_id_error);
    // case ERRCODE_COUNT_ERROR:
    // return context.getString(R.string.json_error_count_error);
    // case ERRCODE_PAGE_ERROR:
    // return context.getString(R.string.json_error_page_error);
    // case ERRCODE_EMAIL_ERROR:
    // return context.getString(R.string.json_error_email_error);
    // case ERRCODE_IP_ERROR:
    // return context.getString(R.string.json_error_ip_error);
    // case ERRCODE_NO_PARAMETER:
    // return context.getString(R.string.json_error_regist_no_null);
    // case ERRCODE_NO_TELNUMBER:
    // return context.getString(R.string.json_error_no_telnumber);
    // case ERRCODE_TELNUMBER_CAPTCHA:
    // return context.getString(R.string.json_error_telnumber_captcha);
    // case ERRCODE_IP_CAPTCHA:
    // return context.getString(R.string.json_error_ip_captcha);
    // case ERRCODE_NO_CAPTCHA:
    // return context.getString(R.string.json_error_no_captcha);
    // case ERRCODE_CAPTCHA_OVERTIME:
    // return context.getString(R.string.json_error_captcha_overtime);
    // case ERRCODE_NO_PASSWORD_TYPE:
    // return context.getString(R.string.json_error_no_password_type);
    // case ERRCODE_NO_CAPTCHA_TYPE:
    // return context.getString(R.string.json_error_no_captcha_type);
    // case ERRCODE_NO_PAPERWORD_MESSAGE:
    // return context.getString(R.string.json_error_no_paperwork_message);
    // case ERRCODE_NO_HOSPITAL_ID:
    // return context.getString(R.string.json_error_no_hospital_id);
    // case ERRCODE_NO_ORDER_REGIST:
    // return context.getString(R.string.json_error_no_order_regist);
    // case ERRCODE_NO_SCHEDULING_ID:
    // return context.getString(R.string.json_error_no_scheduling_id);
    // case ERRCODE_NO_PAPERWORD:
    // return context.getString(R.string.json_error_no_paperwork);
    // case ERRCODE_NO_REALNAME:
    // return context.getString(R.string.json_error_no_realname);
    // case ERRCODE_NO_USER_TELNUMBER:
    // return context.getString(R.string.json_error_no_user_telnumber);
    // case ERRCODE_INVALID_IDCARD:
    // return context.getString(R.string.json_error_invalid_idcard);
    // case ERRCODE_INVALID_SOCIAL_CARD:
    // return context.getString(R.string.json_error_invalid_social_card);
    // case ERRCODE_INVALID_CITIZEN_CARD:
    // return context.getString(R.string.json_error_invalid_citizen_card);
    // // 自定义标识ID
    // case ERRCODE_NO_RETRUN_ERROR:
    // return context.getString(R.string.json_error_no_return_value_error);
    // case ERRCODE_NO_NET:
    // return context.getString(R.string.json_checknet_nonet_to_reload);
    // case DELETE_SUCEED:
    // return context
    // .getString(R.string.json_error_regist_delete_successd);
    // case CANCEL_ORDER_SUCEED:
    // return context.getString(R.string.json_suc_cancel_appointment);
    // case CANCEL_ORDER_FAIL:
    // return context.getString(R.string.json_fail_cancel_appointment);
    // case ERRCODE_SERVER_ERROR:
    // return context.getString(R.string.json_server_error);
    // case ERRCODE_INFORMATION_NULL:
    // return context.getString(R.string.json_null_information);
    // default:
    // return context.getString(R.string.json_error_unknow_exception)
    // + ":" + String.valueOf(errorCode);
    // }
    // }

    // public static String reString(Context context, int errorCode) {
    // switch (errorCode) {
    // case ERRCODE_NO_RETRUN_ERROR:
    // //return context.getString(R.string.json_error_no_return_value_error);
    // return context.getString(R.string.json_error_no_return_value_net_error);
    // case ERRCODE_NO_NET:
    // return context.getString(R.string.json_checknet_nonet_to_reload);
    // case DELETE_SUCEED:
    // return context.getString(R.string.json_error_regist_delete_successd);
    // case CANCEL_ORDER_SUCEED:
    // return context.getString(R.string.json_suc_cancel_appointment);
    // case CANCEL_ORDER_FAIL:
    // return context.getString(R.string.json_fail_cancel_appointment);
    // case ERRCODE_SERVER_ERROR:
    // return context.getString(R.string.json_server_error);
    // case ERRCODE_INFORMATION_NULL:
    // return context.getString(R.string.json_null_information);
    // default:
    // try {
    // int resId = context.getResources().getIdentifier("json_error_" +
    // errorCode, "string",
    // context.getPackageName());
    // String str = context.getString(resId);
    // if (resId != 0 || str != null)
    // return str;
    // else
    // return context.getString(R.string.json_error_1) + errorCode;
    // }
    // catch (Exception e) {
    // Log.d("test", "报空");
    // return context.getString(R.string.json_error_1) + errorCode;
    // }
    // }
    // }
    public static String reString(Context context, int errorCode) {
        switch (errorCode) {
            case ERRCODE_NO_RETRUN_ERROR:
                return context.getString(R.string.json_error_no_return_value_error);
            case ERRCODE_NO_NET:
                return context.getString(R.string.json_checknet_nonet_to_reload);
            case DELETE_SUCEED:
                return context.getString(R.string.json_error_regist_delete_successd);
            case CANCEL_ORDER_SUCEED:
                return context.getString(R.string.json_suc_cancel_appointment);
            case CANCEL_ORDER_FAIL:
                return context.getString(R.string.json_fail_cancel_appointment);
            case ERRCODE_SERVER_ERROR:
                return context.getString(R.string.json_server_error);
            case ERRCODE_INFORMATION_NULL:
                return context.getString(R.string.json_null_information);
            default:
                String country = context.getResources().getConfiguration().locale.getCountry();
                if (country.equals("CN") || country.equals("HK") || country.equals("TW")) {
                    // 中文
                    return reStringCN(context, errorCode, "");
                } else {
                    // 其它默认为英文
                    return reStringEN(context, errorCode, "");
                }
        }
    }

    /**
     * 用于获取JSON返回的提示处理,如果找不到对应编号，则直接显示服务器的返回值
     *
     * @param context
     * @param err_code
     * @param msg
     * @return
     */
    public static String reString(Context context, int err_code, String msg) {
        switch (err_code) {
            case ERRCODE_NO_RETRUN_ERROR:
                return context.getString(R.string.json_error_no_return_value_error);
            case ERRCODE_NO_NET:
                return context.getString(R.string.json_checknet_nonet_to_reload);
            case DELETE_SUCEED:
                return context.getString(R.string.json_error_regist_delete_successd);
            case CANCEL_ORDER_SUCEED:
                return context.getString(R.string.json_suc_cancel_appointment);
            case CANCEL_ORDER_FAIL:
                return context.getString(R.string.json_fail_cancel_appointment);
            case ERRCODE_SERVER_ERROR:
                return context.getString(R.string.json_server_error);
            case ERRCODE_INFORMATION_NULL:
                return context.getString(R.string.json_null_information);
            case ERRCODE_NO_NET_WIFI:
                return context.getString(R.string.json_checknet_nonet);
            default:

                String country = context.getResources().getConfiguration().locale.getCountry();
                if (country.equals("CN") || country.equals("HK") || country.equals("TW")) {
                    // 中文
                    return msg;
                } else {
                    // 其它默认为英文
                    return reStringEN(context, err_code, msg);
                }
                // try {
                // int resId = context.getResources().getIdentifier(
                // "json_error_" + err_code, "string",
                // context.getPackageName());
                // String str = context.getString(resId);
                // if (resId != 0 || str != null)
                // return str;
                // else
                // return msg;
                // } catch (Exception e) {
                // return msg;
                // }
        }
    }

    public static String reStringCN(Context context, int err_code, String msg) {
        String _message = "unknown exception " + String.valueOf(err_code);
        switch (err_code) {
            case 0:
                _message = "ok";
                break;
            case 1:
                _message = "未知的异常";
                break;
            case 2:
                _message = "账户已经被注册，请更换其他账户名称";
                break;
            case 3:
                _message = "账户非法，账户被禁止使用";
                break;
            case 4:
                _message = "账户不存在";
                break;
            case 5:
                _message = "用户名或密码错误";
                break;
            case 6:
                _message = "没有权限";
                break;
            case 7:
                _message = "命中脏字，昵称或者介绍中存在脏字，请检查和替换";
                break;
            case 8:
                _message = "邮箱已经被注册";
                break;
            case 9:
                _message = "解析Json出错";
                break;
            case 10:
                _message = "Email不对或不存在";
                break;
            case 11:
                _message = "数据不存在";
                break;
            case 12:
                _message = "没有获取到CDKey";
                break;
            case 13:
                _message = "注册移动设备失败";
                break;
            case 14:
                _message = "服务器注册信息不能通过验证";
                break;
            case 15:
                _message = "激活MediXInternal时，保存CDKey失败";
                break;
            case 16:
                _message = "更改订单状态失败";
                break;
            case 17:
                _message = "同步失败，同步已被锁住";
                break;
            case 18:
                _message = "同步失败，解析Json或更新数据库时发生异常";
                break;
            case 19:
                _message = "不是此用户的家庭成员";
                break;
            case 20:
                _message = "数据库异常";
                break;
            case 21:
                _message = "保存文件时发生异常";
                break;
            case 22:
                _message = "修改密码失败，旧密码不正确或数据库发生异常";
                break;
            case 23:
                _message = "修改密码失败，旧密码不能和新密码相同";
                break;
            case 24:
                _message = "不是此会员上传的图片";
                break;
            case 25:
                _message = "此手机号已注册，请直接登录";
                break;
            case 26:
                _message = "发送短信验证码失败";
                break;
            case 27:
                _message = "生成短信验证码失败";
                break;
            case 28:
                _message = "新增会员失败，可能是数据库异常或者此帐户已经存在";
                break;
            case 29:
                _message = "所请求的家庭成员不属于此会员";
                break;
            case 30:
                _message = "解析家庭成员ID失败";
                break;
            case 31:
                _message = "手机号未注册";
                break;
            case 32:
                _message = "不是此家庭成员的证件";
                break;
            case 33:
                _message = "此类别证件已存在";
                break;
            case 34:
                _message = "取消预约失败，挂号池回复错误尚无法识别，属于未知异常";
                break;
            case 35:
                _message = "挂号池连接失败";
                break;
            case 36:
                _message = "挂号池回复错误：此排班已过了预约时间，不允许预约！";
                break;
            case 37:
                _message = "挂号池回复错误：预约日期错误";
                break;
            case 38:
                _message = "挂号池回复错误：预约来源错误！";
                break;
            case 39:
                _message = "挂号池回复错误：开发异常，没有此排班信息";
                break;
            case 40:
                _message = "挂号池回复错误：节点[请求头(Request)]不存在";
                break;
            case 41:
                _message = "挂号池回复错误：门诊排版标识不对";
                break;
            case 42:
                _message = "挂号池回复错误：号量已挂满或所挂医生不存在";
                break;
            case 43:
                _message = "挂号池回复错误：此卡号无效，可能是尚未创建的卡";
                break;
            case 44:
                _message = "挂号池回复错误：您当天预约同一家医疗机构同一个科室不能超过2次！";
                break;
            case 45:
                _message = "挂号池回复错误：排班信息不存在，不允许取消预约！";
                break;
            case 46:
                _message = "挂号池回复错误：预约状态为'已取消'，不允许取消预约！";
                break;
            case 47:
                _message = "挂号池回复错误：您已经预约了同一个排班，不能重复预约！";
                break;
            case 48:
                _message = "挂号池回复错误：此排班已开始，不允许取消预约！";
                break;
            case 49:
                _message = "提交预约失败，挂号池回复错误尚无法识别，属于未知异常";
                break;
            case 50:
                _message = "查无此订单";
                break;
            case 51:
                _message = "已经赠送过三个月基础套餐";
                break;
            case 52:
                _message = "挂号池回复错误：调用珠海市第二人民医院的服务出错了，请稍候再试或致电12580报障";
                break;
            case 53:
                _message = "挂号池回复错误：医院接口信息IP超越范围！请与维护人员联系！";
                break;
            case 54:
                _message = "挂号池回复错误：暂时无法连接该医院，请稍候再试，如问题仍然存在请致电12580报障！";
                break;
            case 55:
                _message = "验证诊疗卡失败，挂号池回复错误尚无法识别，属于未知异常";
                break;
            case 56:
                _message = "无效或被使用过的卡";
                break;
            case 57:
                _message = "挂号池回复错误：您状态为'黑名单'，不能进行预约！";
                break;
            case 58:
                _message = "挂号池回复错误：卡已存在，但姓名不相同，不允许预约！";
                break;
            case 59:
                _message = "挂号池回复错误：输入的姓名与持卡人姓名不符";
                break;
            case 60:
                _message = "服务商回复错误：不存在的创建人";
                break;
            case 61:
                _message = "服务商回复错误：提问者性别不符合标准";
                break;
            case 62:
                _message = "服务商回复错误：提问者年龄不符合标准";
                break;
            case 63:
                _message = "服务商回复错误：患者年龄不符合标准";
                break;
            case 64:
                _message = "服务商回复错误：患者年龄类型不符合标准";
                break;
            case 65:
                _message = "服务商回复错误：问题不能超过800个字符";
                break;
            case 66:
                _message = "服务商回复错误：问题不能为空";
                break;
            case 67:
                _message = "服务商回复错误：问题描述不能超过3000个字符";
                break;
            case 68:
                _message = "服务商回复错误：附件超过最大限制";
                break;
            case 69:
                _message = "服务商回复错误：附件格式不正确";
                break;
            case 70:
                _message = "服务商回复错误：读取附件文件失败";
                break;
            case 71:
                _message = "服务商回复错误：附大小超过限制";
                break;
            case 72:
                _message = "服务商回复错误：读取附件出现问题";
                break;
            case 73:
                _message = "用户尚未开通套餐服务";
                break;
            case 74:
                _message = "服务商回复错误：今日提问数量已超过上限5，请明日重试。";
                break;
            case 75:
                _message = "服务商回复错误无法识别，属未知的异常";
                break;
            case 76:
                _message = "提交套餐到服务商时，参数错误： 产品名称 不能为空";
                break;
            case 77:
                _message = "提交套餐到服务商时，参数错误： 姓名 不能为空";
                break;
            case 78:
                _message = "提交套餐到服务商时，参数错误： 证件类型 不能为空";
                break;
            case 79:
                _message = "提交套餐到服务商时，参数错误： 证件 不能为空";
                break;
            case 80:
                _message = "提交套餐到服务商时，参数错误： 用户名 不能为空";
                break;
            case 81:
                _message = "提交套餐到服务商时，参数错误： 手机号码 不能为空";
                break;
            case 82:
                _message = "提交套餐到服务商时，参数错误： 开始时间 不能为空";
                break;
            case 83:
                _message = "提交套餐到服务商时，参数错误： 到期时间 不能为空";
                break;
            case 84:
                _message = "提交套餐到服务商时，参数错误： 状态 不能为空";
                break;
            case 85:
                _message = "提交套餐到服务商时，参数错误： 推送者 不能为空";
                break;
            case 86:
                _message = "提交套餐到服务商时，参数错误： 项目名称 不能为空";
                break;
            case 87:
                _message = "提交套餐到服务商时，回复错误：不存在的创建人";
                break;
            case 88:
                _message = "提交套餐到服务商时，回复错误：未知错误信息";
                break;
            case 89:
                _message = "提交套餐到服务商时，发生未知的异常";
                break;
            case 90:
                _message = "挂号池回复错误：调用珠海市人民医院的服务出错了，请稍候再试或致电12580报障";
                break;
            case 91:
                _message = "挂号池回复错误：诊疗卡号未做登记，请检查诊疗卡是否正确！";
                break;
            case 92:
                _message = "挂号池回复错误：该排班已超过可预约时间(不能预约当天的排班)，请到医院现场挂号或预约其他排班！";
                break;
            case 93:
                _message = "每天申请邮件次数不能超出5次";
                break;
            case 94:
                _message = "修改密码失败：key失效或key错误，没有权限修改密码";
                break;
            case 95:
                _message = "挂号池回复错误：医院返回结果：无效卡或未登记的卡，请确认您输入的卡号和持卡人姓名是否正确！";
                break;
            case 96:
                _message = "挂号池回复错误：诊疗卡号未做登记，请检查诊疗卡是否正确！";
                break;
            case 97:
                _message = "挂号池回复错误：您的待诊预约已经超过6条，不能再预约了！";
                break;
            case 98:
                _message = "挂号池回复错误：预约失败,预约医生号已满";
                break;
            case 99:
                _message = "挂号池回复错误：您的卡状态为过期，不能进行预约！";
                break;
            case 100:
                _message = "挂号池回复错误：医院返回结果：卡持有人姓名与您录入的不一致，不能使用！";
                break;
            case 101:
                _message = "挂号池回复错误：诊疗卡号码不符,请核对";
                break;
            case 102:
                _message = "挂号池回复错误：排班状态为已过期，不允许预约！";
                break;
            case 103:
                _message = "绑定设备失败，不存在这种设备";
                break;
            case 104:
                _message = "绑定设备失败，我已绑定了此设备";
                break;
            case 105:
                _message = "绑定设备失败，设备已被其他用户绑定，请先解除绑定";
                break;
            case 106:
                _message = "解除设备绑定失败，我尚未绑定此设备";
                break;
            case 107:
                _message = "更新设备绑定失败，我尚未绑定此设备";
                break;
            case 108:
                _message = "发送邮件失败";
                break;
            case 109:
                _message = "邮箱未验证";
                break;
            case 110:
                _message = "邮箱已验证成功，无需重复验证";
                break;
            case 111:
                _message = "该任务已经完成";
                break;
            case 112:
                _message = "非Niji用户";
                break;
            case 113:
                _message = "未知的订单状态";
                break;
            case 114:
                _message = "订单没有商品清单";
                break;
            case 115:
                _message = "发货失败";
                break;
            case 116:
                _message = "更新订单状态时出错";
                break;
            case 117:
                _message = "未从支付网关查询到一致的交易信息";
                break;
            case 118:
                _message = "更新交易信息失败";
                break;
            case 119:
                _message = "订单不是虚似商品";
                break;
            case 120:
                _message = "订单已取消";
                break;
            case 121:
                _message = "未知支付网关";
                break;
            case 122:
                _message = "更新服务器交易信息与订单状态发生错误";
                break;
            case 123:
                _message = "挂号池回复错误：调用珠海市妇幼保健院的服务出错了，请稍候再试或致电12580报障";
                break;
            case 124:
                _message = "挂号池回复错误：解析WSDL失败，网络不通，请联系客服。";
                break;
            case 125:
                _message = "挂号池回复错误：新增预约失败，请联系12580客服进行处理";
                break;
            case 126:
                _message = "挂号池回复错误：该病人已预约同个医生就诊,不允许再重复预约! ";
                break;
            case 127:
                _message = "挂号池回复错误：该医生可预约数量已为0 ";
                break;
            case 128:
                _message = "挂号池回复错误：姓名不对,验证卡失败。";
                break;
            case 129:
                _message = "挂号池回复错误：等待医院排班缓存装载完成超时。";
                break;
            case 130:
                _message = "挂号池回复错误：当天不能预约。";
                break;
            case 131:
                _message = "挂号池回复错误：该病人预约日期跟号表的就诊日期不一致,请您重新选择！";
                break;
            case 132:
                _message = "挂号池回复错误：更新剩余可预约数，找不到对应的排班！";
                break;
            case 133:
                _message = "挂号池回复错误：查询可预约数出错,门诊排班号未找到排班信息。";
                break;
            case 134:
                _message = "挂号池回复错误：门诊排班标识不对。";
                break;
            case 135:
                _message = "挂号池回复错误：所选择的预约时段已全部预约完毕，请选择其它时段！";
                break;
            case 136:
                _message = "挂号池回复错误：您的预约卡缺少信息,无法自动登记，请补录信息后再预约。";
                break;
            case 137:
                _message = "挂号池回复错误：调用广东省中医院珠海医院的服务出错了，请稍候再试或致电12580报障。";
                break;
            case 138:
                _message = "挂号池回复错误：锁定号球出错。";
                break;
            case 139:
                _message = "挂号池回复错误：医生已停诊，请选择其他排班预约。";
                break;
            case 140:
                _message = "不能删除代表“我”的家庭成员";
                break;
            case 141:
                _message = "受权码过期";
                break;
            case 142:
                _message = "openId与受权码获取的openId不匹配";
                break;
            case 143:
                _message = "受权码获取AppId与登录AppId不匹配";
                break;
            case 144:
                _message = "平台id错误";
                break;
            case 145:
                _message = "平台验证未知错误";
                break;
            case 146:
                _message = "注册类型错误";
                break;
            case 147:
                _message = "文件格式错误";
                break;
            case 148:
                _message = "生成混音出错";
                break;
            case 149:
                _message = "htm文件不存在";
                break;
            case 150:
                _message = "导入临时表异常";
                break;
            case 151:
                _message = "混音临时数据不存在";
                break;
            case 152:
                _message = "必须包含bbt音效";
                break;
            case 153:
                _message = "音效错误";
                break;
            case 154:
                _message = "混音已存在";
                break;
            case 155:
                _message = "混音ID错误";
                break;
            case 156:
                _message = "保存混音出错";
                break;
            case 157:
                _message = "bbt音效数量超出一个";
                break;
            case 158:
                _message = "音效总数量超出6个";
                break;
            case 159:
                _message = "不是此服务商的客户";
                break;
            case 160:
                _message = "此服务商的客户没有填写信息";
                break;
            case 161:
                _message = "不是客户买药记录";
                break;
            case 162:
                _message = "SQL操作失败";
                break;
            case 163:
                _message = "返回数据为空";
                break;
            case 164:
                _message = "此记录已删除";
                break;
            case 165:
                _message = "发送服务商随访短信失败";
                break;
            case 166:
                _message = "添加服务商随访短信失败";
                break;
            case 167:
                _message = "不是此服务商的客户买药记录";
                break;
            case 168:
                _message = "添加电话随访记录失败";
                break;
            case 169:
                _message = "获取服务商客户手机号时，发生异常，此用户尚未绑定手机号";
                break;
            case 170:
                _message = "已是此服务商的客户，请勿重复绑定";
                break;
            case 171:
                _message = "此客户已经绑定到其他服务商，无法再次绑定";
                break;
            case 172:
                _message = "客户账户邦定到服务商失败";
                break;
            case 173:
                _message = "不是有效的服务商ID";
                break;
            case 174:
                _message = "不是有效的ClientKey";
                break;
            case 175:
                _message = "混音配置数据不存在";
                break;
            case 176:
                _message = "此客户没有邦定服务商";
                break;
            case 178:
                _message = "会员日常任务ID错误";
                break;
            case 179:
                _message = "错误的睡眠详情ID";
                break;
            case 180:
                _message = "会员金币数量不足";
                break;
            case 181:
                _message = "订单不是未付款状态";
                break;
            case 182:
                _message = "收货地址错误";
                break;
            case 183:
                _message = "分享混音时，混音配置不能包含本地音频";
                break;
            case 184:
                _message = "不是该会员的音频";
                break;
            case 185:
                _message = "错误的论坛版块ID";
                break;
            case 186:
                _message = "会员已经关注此版块";
                break;
            case 187:
                _message = "会员未关注此版块";
                break;
            case 188:
                _message = "促销类型错误";
                break;
            case 189:
                _message = "错误的论坛帖子ID";
                break;
            case 190:
                _message = "错误的话题回复ID或该回复已被删除";
                break;
            case 191:
                _message = "论坛插入回复的图片失败";
                break;
            case 192:
                _message = "论坛插入贴子的图片失败";
                break;
            case 193:
                _message = "论坛插入贴子的音乐ID失败";
                break;
            case 194:
                _message = "论坛插入贴子的混音ID失败";
                break;
            case 195:
                _message = "不是该会员的贴子";
                break;
            case 196:
                _message = "已赞过此贴";
                break;
            case 197:
                _message = "上传文件大于10M";
                break;
            case 198:
                _message = "上传文件失败，请重新上传";
                break;
            case 199:
                _message = "插入贴子睡眠ID失败";
                break;
            case 200:
                _message = "创建睡眠评诂URL失败";
                break;
            case 201:
                _message = "没赞过次贴";
                break;
            case 202:
                _message = "错误的贴子混音资源ID";
                break;
            case 203:
                _message = "混音配置错误";
                break;
            case 204:
                _message = "购买混音失败";
                break;
            case 205:
                _message = "购买混音时，支付类型错误";
                break;
            case 206:
                _message = "已经购买过此混音";
                break;
            case 207:
                _message = "获取微信交易ID失败";
                break;
            case 208:
                _message = "获取微信访问令牌失败";
                break;
            case 209:
                _message = "获取微信AppId错误";
                break;
            case 210:
                _message = "创建微信支付 未知错误";
                break;
            case 211:
                _message = "未激上传音频功能";
                break;
            case 212:
                _message = "上传音频数量达到上限";
                break;
            case 213:
                _message = "QQ健康绑定失败，该帐号已绑定其它QQ号";
                break;
            case 214:
                _message = "金币卡无效";
                break;
            case 215:
                _message = "使用金币卡时，保存信息失败";
                break;
            case 216:
                _message = "金币卡已被使用";
                break;
            case 217:
                _message = "抽奖活动ID错误";
                break;
            case 218:
                _message = "抽奖活动次数限制";
                break;
            case 219:
                _message = "抽奖活动未开始";
                break;
            case 220:
                _message = "抽奖活动已结束";
                break;
            case 221:
                _message = "奖品ID错误";
                break;
            case 222:
                _message = "奖品已被使用";
                break;
            case 223:
                _message = "奖品已过期";
                break;
            case 224:
                _message = "优惠券ID错误";
                break;
            case 225:
                _message = "优惠券已被使用或已过期";
                break;
            case 226:
                _message = "没有管理员权限";
                break;
            case 227:
                _message = "被拉进黑名单，解封时间：{0}";
                break;
            case 228:
                _message = "已赞过此评论";
                break;
            case 229:
                _message = "没赞过此评论";
                break;
            case 230:
                _message = "已经举报过了";
                break;
            case 231:
                _message = "置顶话题数量超出上限，请取消一个";
                break;
            case 232:
                _message = "不是该会员的评论";
                break;
            case 233:
                _message = "推荐话题数量超出上限，请取消一个";
                break;
            case 234:
                _message = "不能屏蔽自已私信";
                break;
            case 235:
                _message = "不能私信自已";
                break;
            case 236:
                _message = "已被禁言";
                break;
            case 237:
                _message = "已被屏蔽私信";
                break;
            case 238:
                _message = "亲！只有经验值一级以上才能发评论，二级以上才能发帖子哦～";
                break;
            case 239:
                _message = "激活卡号或密码错误";
                break;
            case 240:
                _message = "激活{0}失败，该卡为{1}激活卡";
                break;
            case 241:
                _message = "恭喜您，激活成功了！Sorry，我没能帮您成功刷新后台，劳烦您重新登录一次来手动完成刷新";
                break;
            case 242:
                _message = "亲，您已激活过了！Sorry，我没能帮您成功刷新后台，劳烦您重新登录一次来手动完成刷新";
                break;
            case 243:
                _message = "话题已被删除";
                break;
            case 244:
                _message = "该期没到发布时间";
                break;
            case 245:
                _message = "该期没有精选音乐";
                break;
            case 246:
                _message = "无精选分类";
                break;
            case 247:
                _message = "该分类无精选音乐";
                break;
            case 248:
                _message = "排行无精选音乐";
                break;
            case 249:
                _message = "已收藏该精选音乐";
                break;
            case 250:
                _message = "已错误精选音乐ID";
                break;
            case 251:
                _message = "帐号已绑定";
                break;
            case 252:
                _message = "帐号未绑定";
                break;

            case 10001:
                _message = "id不在正确的范围之内";
                break;
            case 10002:
                _message = "count不在正确的范围之内";
                break;
            case 10003:
                _message = "page不在正确的范围之内，最大不超过200";
                break;
            case 10004:
                _message = "gender参数错误，m：男、f：女";
                break;
            case 10005:
                _message = "words参数错误，字符串不能为空";
                break;
            case 10006:
                _message = "不是正确的Email";
                break;
            case 10007:
                _message = "不是正确的IP";
                break;
            case 10008:
                _message = "参数不能为空";
                break;
            case 10009:
                _message = "machineCode不正确";
                break;
            case 10010:
                _message = "不是该会员的订单";
                break;
            case 10011:
                _message = "订单中没有产品MediXInternalCDKey";
                break;
            case 10012:
                _message = "订单不是已付款状态";
                break;
            case 10013:
                _message = "CDKey 无效";
                break;
            case 10014:
                _message = "激活卡无效";
                break;
            case 10015:
                _message = "激活卡被使用的次数已经达到上限";
                break;
            case 10016:
                _message = "使用激活卡激活时，保存激活信息失败";
                break;
            case 10017:
                _message = "手机号码格式不正确";
                break;
            case 10018:
                _message = "此手机号请求激活码过于频繁";
                break;
            case 10019:
                _message = "此IP请求激活码过于频繁";
                break;
            case 10020:
                _message = "短信验证码错误";
                break;
            case 10021:
                _message = "短信验证码过期";
                break;
            case 10022:
                _message = "密码格式不正确";
                break;
            case 10023:
                _message = "不是正确的短信验证码类型";
                break;
            case 10024:
                _message = "用户名格式不正确";
                break;
            case 10025:
                _message = "证件信息类型错误";
                break;
            case 10026:
                _message = "医院id不能为空";
                break;
            case 10027:
                _message = "提交预约挂号到挂号池时，预约订单来源参数不正确";
                break;
            case 10028:
                _message = "排班Id不能为空";
                break;
            case 10029:
                _message = "用户家庭成员证件卡号不能为空";
                break;
            case 10030:
                _message = "真实姓名不能为空";
                break;
            case 10031:
                _message = "用户尚未绑定手机号";
                break;
            case 10032:
                _message = "提交销售订单时，收货地址中电话号码、手机号码必须填一项";
                break;
            case 10033:
                _message = "无效的身份证号码";
                break;
            case 10034:
                _message = "无效的社保卡号码";
                break;
            case 10035:
                _message = "无效的市民卡号码";
                break;
            case 10036:
                _message = "无效的重置密码key";
                break;
            case 10037:
                _message = "用户已激活骨传导功能，无需重复激活";
                break;
            case 10038:
                _message = "设备型号无效";
                break;
            case 10039:
                _message = "设备序列号无效";
                break;
            case 10040:
                _message = "AppId无效";
                break;
            case 10041:
                _message = "用户已激活，无需重复激活";
                break;
            case 10042:
                _message = "获取广告信息时，参数ad_id（广告ID）错误";
                break;
            case 10043:
                _message = "获取广告信息时，参数device_resolution（设备分辨率）错误";
                break;
            case 10044:
                _message = "服务商搜索客户买药记录时，输入参数记录类型错误";
                break;
            case 10045:
                _message = "接口已关闭";
                break;
            case 10046:
                _message = "不能拉黑自己";
                break;
            case 10047:
                _message = "帖子标题长度错误，长度为4-25个字符之间";
                break;
            case 10048:
                _message = "帖子内容长度超出3000个字符";
                break;
            case 10049:
                _message = "帖子图片超过9张";
                break;
            case 10050:
                _message = "帖子回复内容长度超出200个字符";
                break;
            case 10051:
                _message = "帖子回复图片超过4张";
                break;
            case 10052:
                _message = "子回复内容长度超出100个字符";
                break;
            case 10053:
                _message = "卡号输入有误";
                break;
            case 20001:
                _message = "挂号池回复错误：所选择的预约已取消,无法再取消预约！";
                break;
            case 20002:
                _message = "挂号池回复错误：您当天在同一医疗机构的预约不能超过3个！";
                break;
            default: // 未知的异常
                _message = "未知的异常 " + String.valueOf(err_code);
                break;
        }
        return _message;
    }

    public static String reStringEN(Context context, int err_code, String msg) {
        String _message = "";
        switch (err_code) {
            case 1: // 未知的异常
                _message = "unknown exception";
                break;
            case 2: // 账户已经被注册，请更换其他账户名称
                _message = "account has been register";
                break;
            case 3: // 账户非法，账户被禁止使用
                _message = "invalid account";
                break;
            case 4: // 账户不存在
                _message = "account no exist";
                break;
            case 5: // 用户名或密码错误
                _message = "username or password is incorrect";
                break;
            case 6: // 没有权限
                _message = "have no permission";
                break;
            case 7: // 命中脏字，昵称或者介绍中存在脏字，请检查和替换
                _message = "hit dirty words";
                break;
            case 8: // 邮箱已经被注册
                _message = "email has been register";
            case 9:// 解析Json出错
                _message = "Json Analyzing Error.";
                break;
            case 10:// Email不对或不存在
                _message = "Email address does not exist.";
                break;
            case 11:// 数据不存在
                _message = "Data does not exist.";
                break;
            case 12:// 没有获取到CDKey
                _message = "CDKey is not available.";
                break;
            case 13:// 注册移动设备失败
                _message = "Fail to register your phone number.";
                break;
            case 14:// 服务器注册信息不能通过验证
                _message = "Server registration is failed.";
                break;
            case 15:// 激活MediXInternal时，保存CDKey失败
                _message = "Fail to save CDKey when activating MediXInternal.";
                break;
            case 16:// 更改订单状态失败
                _message = "Fail to change your order status.";
                break;
            case 17:// 同步失败，同步已被锁住
                _message = "Synchronizatian is failed and locked.";
                break;
            case 18:// 同步失败，解析Json或更新数据库时发生异常
                _message = "Fail to synchronize due to Json or database error.";
                break;
            case 19:// 不是此用户的家庭成员
                _message = "Not a Family Member.";
                break;
            case 20:// 数据库异常
                _message = "Database Error.";
                break;
            case 21:// 保存文件时发生异常
                _message = "Fail to save the document.";
                break;
            case 22:// 修改密码失败，旧密码不正确或数据库发生异常
                _message = "Fail to change password.  The old password you entered is incorrect.";
                break;
            case 23:// 修改密码失败，旧密码不能和新密码相同
                _message = "Fail to change Password.  The new password can't be the same as the old one.";
                break;
            case 24:// 不是此会员上传的图片
                _message = "Photo is not belong to the member.";
                break;
            case 25:// 此手机号已注册，请直接登录
                _message = "Your phone number has already been registerd, please log in.";
                break;
            case 26:// 发送短信验证码失败
                _message = "Fail to deliver verification code to your mobile phone.";
                break;
            case 27:// 生成短信验证码失败
                _message = "Fail to create verification code.";
                break;
            case 28:// 新增会员失败，可能是数据库异常或者此帐户已经存在
                _message = "Fail to add  new account due to database error, or the account has existed.";
                break;
            case 29:// 所请求的家庭成员不属于此会员
                _message = "The familiy member requested is not belong to the account.";
                break;
            case 30:// 解析家庭成员ID失败
                _message = "Fail to analyze the family member ID.";
                break;
            case 31:// 手机号未注册
                _message = "Your phone number is not registered yet.";
                break;
            case 50:// 查无此订单
                _message = "The order does not exist.";
                break;
            case 93:// 每天申请邮件次数不能超出5次
                _message = "Your can't apply for new accounts through emails over 5 times per day.";
                break;
            case 94:// 修改密码失败：key失效或key错误，没有权限修改密码
                _message = "Fail to change Password. The key is invalid, or you don't have rights to change it.";
                break;
            case 108:// 发送邮件失败
                _message = "Fail to deliver  email.";
                break;
            case 109:// 邮箱未验证
                _message = "The email is unauthorized.";
                break;
            case 110:// 邮箱已验证成功，无需重复验证
                _message = "The email has been authorized.";
                break;
            case 111:// 该任务已经完成
                _message = "The task is completed.";
                break;
            case 146:// 注册类型错误
                _message = "Wrong Type of Registration.";
                break;
            case 147:// 文件格式错误
                _message = "Wrong Format of Document.";
                break;
            case 148:// 生成混音出错
                _message = "Fail to mix the audios.";
                break;
            case 149:// htm文件不存在
                _message = "HTM document does not exist.";
                break;
            case 150:// 导入临时表异常
                _message = "Fail to import temporary tables.";
                break;
            case 151:// 混音临时数据不存在
                _message = "Temporay data of mixed audios does not exist.";
                break;
            case 152:// 必须包含bbt音效
                _message = "The mixed audios must contain BBT audio.";
                break;
            case 153:// 音效错误
                _message = "Format of audio is incorrect.";
                break;
            case 154:// 混音已存在
                _message = "Mixed audios has existed.";
                break;
            case 155:// 混音ID错误
                _message = "ID of Mixed audios is incorrect.";
                break;
            case 156:// 保存混音出错
                _message = "Fail to save mixed audios.";
                break;
            case 157:// bbt音效数量超出一个
                _message = "Only one BBT audio can be included in mixed audios.";
                break;
            case 158:// 音效总数量超出6个
                _message = "No more than 6 audios can be included in mixed audios.";
                break;
            case 162:// SQL操作失败
                _message = "Fail to SQL.";
                break;
            case 163:// 返回数据为空
                _message = "No data is returned.";
                break;
            case 164:// 此记录已删除
                _message = "The record has been deleted.";
                break;
            case 174:// 不是有效的ClientKey
                _message = "ClientKey is invalid.";
                break;
            case 175:// 混音配置数据不存在
                _message = "Configuration data of mixed audios does not exist.";
                break;
            case 179:// 错误的睡眠详情ID
                _message = "ID of Sleep Detail Report is invalid.";
                break;
            case 183:// 分享混音时，混音配置不能包含本地音频
                _message = "Local audio should not be included in shared mixed audios.";
                break;
            case 184:// 不是该会员的音频
                _message = "The audio is not belong to the account.";
                break;
            case 197:// 上传文件大于10M
                _message = "Document uploaded can not be larger than 10M.";
                break;
            case 198:// 上传文件失败，请重新上传
                _message = "Fail to upload file, please try again.";
                break;
            case 200:// 创建睡眠评诂URL失败
                _message = "Fail to create URL for Sleep Assessment.";
                break;
            case 203:// 混音配置错误
                _message = "Configuration Error of Mixed Audios.";
                break;
            case 207:// 获取微信交易ID失败
                _message = "Fail to get Wechat order ID.";
                break;
            case 208:// 获取微信访问令牌失败
                _message = "Fail to get Wechat visit token.";
                break;
            case 209:// 获取微信AppId错误
                _message = "Fail to get Wechat AppID.";
                break;
            case 211:// 未激上传音频功能
                _message = "You don't have rights to upload audios.";
                break;
            case 212:// 上传音频数量达到上限
                _message = "The amount of audios has reached the limit.";
                break;
            case 213:// QQ健康绑定失败，该帐号已绑定其它QQ号
                _message = "Fail to bind your account to QQ Health, as it has been binded to other QQ account.";
                break;
            case 214:// 金币卡无效
                _message = "The coins are invalid.";
                break;
            case 215:// 使用金币卡时，保存信息失败
                _message = "Fail to save information of coins.";
                break;
            case 216:// 金币卡已被使用
                _message = "The coins have been used.";
                break;
            case 239:// 激活卡号或密码错误
                _message = "The verification code or password is incorrect.";
                break;
            case 240:// 激活{0}失败，该卡为{1}激活卡
                _message = "Fail to activate the card. Be sure you are using Card 1.";
                break;
            case 241:// 恭喜您，激活成功了！Sorry，我没能帮您成功刷新后台，劳烦您重新登录一次来手动完成刷新
                _message = "Conguration! Activation is successful. Please log out and log in again to update the data.";
                break;
            case 242:// 亲，您已激活过了！Sorry，我没能帮您成功刷新后台，劳烦您重新登录一次来手动完成刷新
                _message = "Activation has been  finished.  Please log out and log in again to update the data.";
                break;
            case 10001:// id不在正确的范围之内
                _message = "ID is incorrect.";
                break;
            case 10002:// count不在正确的范围之内
                _message = "COUNT is not in the correct scope.";
                break;
            case 10003:// page不在正确的范围之内，最大不超过200
                _message = "PAGE is not in the correct scope and should be no more than 200.";
                break;
            case 10004:// gender参数错误，m：男、f：女
                _message = "GENDER is incorrect. M for men, and F for women.";
                break;
            case 10005:// words参数错误，字符串不能为空
                _message = "WORDS is incorrect. It can not be null.";
                break;
            case 10006:// 不是正确的Email
                _message = "The format of email is incorrect.";
                break;
            case 10007:// 不是正确的IP
                _message = "IP address is incorrect.";
                break;
            case 10008:// 参数不能为空
                _message = "Parameter can not be null.";
                break;
            case 10009:// machineCode不正确
                _message = "MachineCode is incorrect.";
                break;
            case 10013:// CDKey 无效
                _message = "CDKey is not invalid.";
                break;
            case 10014:// 激活卡无效
                _message = "Activation card is invalid.";
                break;
            case 10015:// 激活卡被使用的次数已经达到上限
                _message = "Usage count of  activation card has reached the limit.";
                break;
            case 10016:// 使用激活卡激活时，保存激活信息失败
                _message = "Fail to save the activation information.";
                break;
            case 10017:// 手机号码格式不正确
                _message = "The format of phone number is incorrect.";
                break;
            case 10018:// 此手机号请求激活码过于频繁
                _message = "Activation request from the phone number is too frequently.";
                break;
            case 10019:// 此IP请求激活码过于频繁
                _message = "Activation request from the IP address is too frequently.";
                break;
            case 10020:// 短信验证码错误
                _message = "Verification code is incorrect.";
                break;
            case 10021:// 短信验证码过期
                _message = "Verification code has expired.";
                break;
            case 10022:// 密码格式不正确
                _message = "Format of password is incorrect.";
                break;
            case 10023:// 不是正确的短信验证码类型
                _message = "Tpye of verification code is incorrect.";
                break;
            case 10024:// 用户名格式不正确
                _message = "Format of USERNAME is incorrect.";
                break;
            case 10031:// 用户尚未绑定手机号
                _message = "No phone number has benn binded to the account.";
                break;
            case 10036:// 无效的重置密码key
                _message = "Key to reset password is invalid.";
                break;
            case 10037:// 用户已激活骨传导功能，无需重复激活
                _message = "Function of Bone Conduction has been activated.";
                break;
            case 10038:// 设备型号无效
                _message = "Type of instrument is invalid.";
                break;
            case 10039:// 设备序列号无效
                _message = "Serial number is invalid.";
                break;
            case 10040:// AppId无效
                _message = "AppID is invalid.";
                break;
            case 10041:// 用户已激活，无需重复激活
                _message = "The account has been activated.";
                break;
            case 10042:// 获取广告信息时，参数ad_id（广告ID）错误
                _message = "AD_ID parameter is incorrect when getting AD information.";
                break;
            case 10043:// 获取广告信息时，参数device_resolution（设备分辨率）错误
                _message = "DEVICE_RESOLUTION parameter is incorrect when getting AD information.";
                break;
            case 10045:// 接口已关闭
                _message = "API has been closed.";
                break;
            case 10053:// 卡号输入有误
                _message = "Card number is incorrect.";
                break;

            default: // 未知的异常
                _message = "unknown exception " + err_code;
                break;
        }
        return _message;
    }
}